package com.omega.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.omega.dao.BrandDao;
import com.omega.entity.Brand;

@Repository
public class BrandDaoImpl extends GenericDaoImpl<Brand> implements BrandDao {

	public BrandDaoImpl(){
		super();
        setClazz(Brand.class);
	}
	@Override
	public void addBrand(Brand portalBrand) {
		save(portalBrand);		
	}

	@Override
	public List<Brand> loadAllBrands() {
		return loadAll();
	}

	@Override
	public Brand loadById(long brandId) {
		return loadByid(brandId);
	}

	@Override
	public void updateBrand(Brand brand) {
		update(brand);		
	}
}
